package com.igeek.boot.result;

import lombok.Data;

/**
 * @Author fengqq
 * @Description 响应结果集
 * @Date 2024/8/19  14:19
 */
@Data
public class Result {
    private Integer code;//状态码 200 ok
    private String message;//错误信息
    private Object data;//响应数据

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Result(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }

    public Result(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
